package com.bm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName ejyy_community_setting
 */
@TableName(value ="ejyy_community_setting")
@Data
public class EjyyCommunitySetting implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long communityId;

    /**
     * 
     */
    private Boolean accessNfc;

    /**
     * 
     */
    private Boolean accessRemote;

    /**
     * 
     */
    private Boolean accessQrcode;

    /**
     * 
     */
    private Integer carportMaxCar;

    /**
     * 
     */
    private Integer garageMaxCar;

    /**
     * 装修保证金
     */
    private Boolean fitmentPledge;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EjyyCommunitySetting other = (EjyyCommunitySetting) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCommunityId() == null ? other.getCommunityId() == null : this.getCommunityId().equals(other.getCommunityId()))
            && (this.getAccessNfc() == null ? other.getAccessNfc() == null : this.getAccessNfc().equals(other.getAccessNfc()))
            && (this.getAccessRemote() == null ? other.getAccessRemote() == null : this.getAccessRemote().equals(other.getAccessRemote()))
            && (this.getAccessQrcode() == null ? other.getAccessQrcode() == null : this.getAccessQrcode().equals(other.getAccessQrcode()))
            && (this.getCarportMaxCar() == null ? other.getCarportMaxCar() == null : this.getCarportMaxCar().equals(other.getCarportMaxCar()))
            && (this.getGarageMaxCar() == null ? other.getGarageMaxCar() == null : this.getGarageMaxCar().equals(other.getGarageMaxCar()))
            && (this.getFitmentPledge() == null ? other.getFitmentPledge() == null : this.getFitmentPledge().equals(other.getFitmentPledge()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCommunityId() == null) ? 0 : getCommunityId().hashCode());
        result = prime * result + ((getAccessNfc() == null) ? 0 : getAccessNfc().hashCode());
        result = prime * result + ((getAccessRemote() == null) ? 0 : getAccessRemote().hashCode());
        result = prime * result + ((getAccessQrcode() == null) ? 0 : getAccessQrcode().hashCode());
        result = prime * result + ((getCarportMaxCar() == null) ? 0 : getCarportMaxCar().hashCode());
        result = prime * result + ((getGarageMaxCar() == null) ? 0 : getGarageMaxCar().hashCode());
        result = prime * result + ((getFitmentPledge() == null) ? 0 : getFitmentPledge().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", communityId=").append(communityId);
        sb.append(", accessNfc=").append(accessNfc);
        sb.append(", accessRemote=").append(accessRemote);
        sb.append(", accessQrcode=").append(accessQrcode);
        sb.append(", carportMaxCar=").append(carportMaxCar);
        sb.append(", garageMaxCar=").append(garageMaxCar);
        sb.append(", fitmentPledge=").append(fitmentPledge);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}